package org.eclipse.jface.text;

/**
 * @project: JvIDE
 * @author: WEG
 * @description:
 **/
public interface IDocumentAdapter {

    FindReplaceDocumentAdapter find();

    IDocument getDocument();

    void setDocument(IDocument document);

    void addTextChangeListener(TextChangeListener listener);

    char getChar(int offset);

    int getCharCount();

    String getLine(int line);

    String getLineDelimiter(int line);

    int getLineLength(int line);

    int getLineAtOffset(int offset);

    int getLineCount();

    String getLineDelimiter();

    int getOffsetAtLine(int line);

    String getTextRange(int offset, int length);

    void removeTextChangeListener(TextChangeListener listener);

    void replaceTextRange(int offset, int length, String text);

    void setText(String text);

}
